// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.ComponentModel.Composition
{
    /// <summary>
    ///     Specifies the provider for constructing Metadata Views
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface,
                    AllowMultiple = false, Inherited = true)]
    public sealed class MetadataViewAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="MetadataViewAttribute"/> class.
        /// </summary>
        public MetadataViewAttribute()
        {
        }

        /// <summary>
        ///     Gets or sets a value indicating the Type which operates as a provider for 
        ///     Strongly Typed Metadata Views.
        /// </summary>
        /// <value>
        ///     The Type that is the provider for Strongly Typed Metadata Views
        /// </value>
        public Type Provider { get; set; }
    }
}


